package cn.goods.itcast.service;

import cn.goods.itcast.dao.UserDao;
import cn.goods.itcast.domain.User;
import cn.goods.itcast.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author ChengGM
 * @create 2016-12-30 20:21
 **/
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao;

    @Override
    public User findAllUser(User user) {
        String name = user.getLoginname();
        return userDao.findAllUser(name);
    }
}
